<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <h:form id="invIngresoItemSearch" styleClass="edit">

        <rich:simpleTogglePanel label="InvIngresoItem Search Filter" switchType="ajax">

            <s:decorate template="layout/display.xhtml">
                <ui:define name="label">Ini nombre</ui:define>
                <h:inputText id="iniNombre" value="#{invIngresoItemList.invIngresoItem.iniNombre}"/>
            </s:decorate>


        </rich:simpleTogglePanel>

        <div class="actionButtons">
            <h:commandButton id="search" value="Search" action="/InvIngresoItemList.xhtml"/>
            <s:button id="reset" value="Reset" includePageParams="false"/>
        </div>

    </h:form>

    <rich:panel>
        <f:facet name="header">InvIngresoItem Search Results</f:facet>
    <div class="results" id="invIngresoItemList">

    <h:outputText value="The invIngresoItem search returned no results."
               rendered="#{empty invIngresoItemList.resultList}"/>

    <rich:dataTable id="invIngresoItemList"
                var="_invIngresoItem"
              value="#{invIngresoItemList.resultList}"
           rendered="#{not empty invIngresoItemList.resultList}">
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Detalle ingreso"/>
                    <ui:param name="propertyPath" value="invIngresoItem.detalleIngreso"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.detalleIngreso}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Dep codigo"/>
                    <ui:param name="propertyPath" value="invIngresoItem.depCodigo"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.depCodigo}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Ini cantidad"/>
                    <ui:param name="propertyPath" value="invIngresoItem.iniCantidad"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.iniCantidad}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Ini costo t"/>
                    <ui:param name="propertyPath" value="invIngresoItem.iniCostoT"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.iniCostoT}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Ini costo total"/>
                    <ui:param name="propertyPath" value="invIngresoItem.iniCostoTotal"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.iniCostoTotal}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Ini costo u"/>
                    <ui:param name="propertyPath" value="invIngresoItem.iniCostoU"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.iniCostoU}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Ini descuento"/>
                    <ui:param name="propertyPath" value="invIngresoItem.iniDescuento"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.iniDescuento}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Ini iva"/>
                    <ui:param name="propertyPath" value="invIngresoItem.iniIva"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.iniIva}">
                <f:convertNumber/>
            </h:outputText>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Ini nombre"/>
                    <ui:param name="propertyPath" value="invIngresoItem.iniNombre"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.iniNombre}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Inv ingreso ing codigo"/>
                    <ui:param name="propertyPath" value="invIngresoItem.invIngreso.ingCodigo"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.invIngreso.ingCodigo}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Inv item stock item secuenca"/>
                    <ui:param name="propertyPath" value="invIngresoItem.invItemStock.itemSecuenca"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.invItemStock.itemSecuenca}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Subdep codigo"/>
                    <ui:param name="propertyPath" value="invIngresoItem.subdepCodigo"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.subdepCodigo}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{invIngresoItemList}"/>
                    <ui:param name="propertyLabel" value="Und codigo"/>
                    <ui:param name="propertyPath" value="invIngresoItem.undCodigo"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_invIngresoItem.undCodigo}"/>
        </h:column>
        <rich:column styleClass="action">
            <f:facet name="header">Action</f:facet>
            <s:link view="/#{empty from ? 'InvIngresoItem' : from}.xhtml"
                   value="#{empty from ? 'View' : 'Select'}"
             propagation="#{empty from ? 'none' : 'default'}"
                      id="invIngresoItem">
                <f:param name="invIngresoItemDetalleIngreso"
                        value="#{_invIngresoItem.detalleIngreso}"/>
            </s:link>
            #{' '}
            <s:link view="/InvIngresoItemEdit.xhtml"
                   value="Edit"
             propagation="none"
                      id="invIngresoItemEdit"
                rendered="#{empty from}">
                <f:param name="invIngresoItemDetalleIngreso"
                        value="#{_invIngresoItem.detalleIngreso}"/>
            </s:link>
        </rich:column>
    </rich:dataTable>

    </div>
    </rich:panel>

    <div class="tableControl">

        <s:link view="/InvIngresoItemList.xhtml"
            rendered="#{invIngresoItemList.previousExists}"
               value="#{messages.left}#{messages.left} First Page"
                  id="firstPage">
          <f:param name="firstResult" value="0"/>
        </s:link>

        <s:link view="/InvIngresoItemList.xhtml"
            rendered="#{invIngresoItemList.previousExists}"
               value="#{messages.left} Previous Page"
                  id="previousPage">
            <f:param name="firstResult"
                    value="#{invIngresoItemList.previousFirstResult}"/>
        </s:link>

        <s:link view="/InvIngresoItemList.xhtml"
            rendered="#{invIngresoItemList.nextExists}"
               value="Next Page #{messages.right}"
                  id="nextPage">
            <f:param name="firstResult"
                    value="#{invIngresoItemList.nextFirstResult}"/>
        </s:link>

        <s:link view="/InvIngresoItemList.xhtml"
            rendered="#{invIngresoItemList.nextExists}"
               value="Last Page #{messages.right}#{messages.right}"
                  id="lastPage">
            <f:param name="firstResult"
                    value="#{invIngresoItemList.lastFirstResult}"/>
        </s:link>

    </div>

    <s:div styleClass="actionButtons" rendered="#{empty from}">
        <s:button view="/InvIngresoItemEdit.xhtml"
                    id="create"
           propagation="none"
                 value="Create invIngresoItem">
            <f:param name="invIngresoItemDetalleIngreso"/>
        </s:button>
    </s:div>

</ui:define>

</ui:composition>
